/*
 * 使用示例:
 * const redis = require('index.js')(options);
 * 
 * options支持的参数:
 * host 主机地址
 * port 端口
 * password 授权密码
 * keyPrefix redis key前缀
 * 其他参数可参考:https://github.com/luin/ioredis
 */
'use strict';

const Redis = require('ioredis');

exports = module.exports = (options) => {
  return new Redis(options);
}